package com.android.sunflower.logic.room

import androidx.room.TypeConverter
import java.util.*

class TypeConverter {

    @TypeConverter
    fun dateToLong(date: Date?):Long?{
        return date?.time
    }
    @TypeConverter
    fun longToDate(time:Long?):Date?{
        return Date(time!!)
    }
}